Repository navigation
fix(resources): a transport reply's result takes its owner's declared paths off box (rf2-9yvig) - #11831
Merged
Conversation
… paths off box (rf2-9yvig) Managed HTTP settles an attempt by dispatching [<internal-reply-id> <verification-payload> <result>]. The carrier projector gave that result a coarse owner's claim, but an owner declaring only paths classifies :serialize, so under :rf.egress/include-event-args? its declared paths rode raw on the event's :rf.event/v and the record's :trigger-event, while the continuation reply carrying the same value to its :reply-to target redacted them. The transport result now takes the continuation reply's second arm too: the owner the payload names (its work id's resource, or a mutation attempt's :mutation-id) resolves once, its coarse claim tokenizes :value, and otherwise redact-reply-declarations substitutes its declared paths. A feed's declaration reads as written there, because the result is the single page it was written against. The read and mutation twins are both covered; the on-box trace and the app's :reply-to handler keep the raw value.
mike-thompson-day8
force-pushed
the
worker/transport-path-decl-fix
branch
from
October 30, 2026 02:29
7b77e6f to
8105f7b
Compare
mike-thompson-day8
marked this pull request as ready for review
October 30, 2026 02:51
mike-thompson-day8
added a commit
that referenced
this pull request
Oct 30, 2026
Merge: f31d272 at 2026-10-30T02:53:09Z. Completeness: The requested path-only transport-result fix is complete for resource and mutation owners and preserves continuation replies. One adjacent actionable cursor-carrier gap was reproduced and filed separately. Correctness: The shared declared-path projection and coarse-owner controls are correct, with meaningful reported twin-carrier tests, six-failure fault plants and passing CI. A focused JVM probe on the exact merge additionally proves coarse-sensitive infinite-feed page cursors remain raw in runtime verification payloads on opted-in event and effect carriers; filed as a new open Bead. Implementation quality: Good localized reuse of the existing declaration projector and one owner lookup; the feed raw-page versus merged-item distinction is sound. The newly filed cursor correction can remain in the same existing carrier seam without new policy or API. Findings: rf2-jbitg. Source forward pointers: rf2-9yvig.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bead: rf2-9yvig
What
Managed HTTP settles an attempt by dispatching
[<internal-reply-id> <verification-payload> <result>]. Since #11826 the resources carrier projector tokenizes that result's:valuewhen the owner makes the coarse:sensitive?/:large?claim. An owner that declares only paths (:sensitive [[:token]]) classifies:serialize, though, so under:rf.egress/include-event-args?its declared paths rode raw on the transport event's:rf.event/vand on the epoch record's:trigger-event. The continuation reply carrying the same value to its:reply-totarget already redacted them.Fix
The transport result now gets the second arm that every other reply copy already has, at the same site (
project-transport-resultintrace_egress.cljc):transport-owner): the resource named by its work id, or a mutation attempt's:mutation-id. The same owner is used for both arms.:valueis tokenized, and an unregistered owner fails closed. That part is unchanged.redact-reply-declarations. That function now takes the owner spec, and the continuation reply's lookup moves intoreply-owner-spec.:erroris still tokenized unconditionally.There is no new policy and no new declaration source. One reading choice: an infinite feed's declaration is read as written, not through
feed-reply-spec. The transport result is the single decoded page the declaration was written against (Spec 016 §infinite-feed:value).feed-reply-specexists only because the:reply-tovalue is the merged item list.On box, nothing changes. The transport arm runs only through
project-fx-args-egress, so the on-box trace and the app's:reply-tohandler still receive the raw value. The new test pins both.No core change:
:trigger-eventalready goes through the same carrier projector (project-captured-carrier).Probe and control
New test
a-transport-replys-result-takes-its-owners-declared-pathsinresources_key_identity_event_egress_cljs_test.cljc. It covers the read twin (:r/paths) and the mutation twin (:m/paths), both:sensitive [[:token]]with no coarse claim, each settled with{:status :ok :value {:token <sentinel> :ok 1}}.[2 :value :token]reads:rf/redactedon:trigger-eventand on every:rf.event/vcopy, and no off-box copy carries the sentinel.:okrides. The:reply-totarget's:valuereads{:token :rf/redacted :ok 1}on both carriers. The on-box trace and the app's handler both keep the raw value.Reproduction on the trunk code, with only the test added: 6 failures. The token assertion failed on both carriers for both twins, and the leak assertion failed for both twins. Every control was green.
Quality gates
Exit codes are captured from each runner itself, never through a pipe.
c0b027bb5c, before any edit): resourcesclojure -M:testexit 0, 600 tests / 1896 assertions. The trunk CICLJS (shadow-cljs :node-test)job at the same commit: 6819 tests / 19985 assertions.clojure -M:test: exit 0, 601 tests / 1924 assertions (+1 / +28, as predicted).npm run test:cljs: exit 0, 6820 tests / 20013 assertions (+1 / +28, as predicted). It ran through the machine-wide shadow lane.(redact-reply-declarations result spec)replaced byresult; anchor count 1): exit 1, exactly the 6 predicted failures. The:tokenassertion failed on:trigger-eventand on:rf.event/vfor both twins, and the leak assertion failed for both twins. The sibling:ok, the:reply-tocopies, the on-box trace and the app handler stayed green.HEAD's blob fortrace_egress.cljc, andgit diff --quietexits 0.scripts/check_*.pygates that grade implementation source (retired spellings, ambient durable reads, thrown error messages, keyword catalogue, egress walker residue, inject-cofx residue, test lane bijection, JVM lanes, require-alias dialect, runtime subsystem grading) each exited 0.tools/storyfix, neither touching these paths.scripts/test-jvm-implementation.shwas not run.